Investors cheer improvement in the bottom line