NEW YORK (TheStreet) -- Krispy Kreme  (KKD), which has a track record of disappointing on earnings results, gave investors a sweet surprise when the donut maker posted profits after the close on Wednesday that beat estimates.

Sales were up 5.2%, and earnings were $0.24 per share, up 5% from last year. Revenue, however, missed estimates, coming in at $132.5 million, below Wall Street's predicted $136 million.

Krispy Kreme has plans to expand in 2016, adding 95 new stores. It's an off-putting move for some analysts as the donut market gets tougher. Kispy Kreme has struggled to retain market share from competitors such as Dunkin Donuts  (DNKN - Get Report) and Tim Hortons  (THI). Millennials' buying trends are also moving towards healthier, less sugary snacks.

The stock has gained almost 6% in the last year but is still recovering from a substantial drop in late 2014. The company upped its earnings outlook for 2016 to $0.85 per share from $0.80 per share.

"Solid domestic same-store sales growth and improved margin performance at our company shops enabled us to exceed our internal projections," Chief Executive Officer Anthony Thompson told investors.

Box  (BOX - Get Report) also reported its second round of earnings since its IPO, posting a smaller loss than expected of $47.3 million, or 28 cents per share. Revenue came in at $65.6 million, also beating estimates and up around 45% from last year.

The cloud content provider has struggled with losses as it expanded but is predicting around 30% growth for 2015, down from last year. Box saw its paying customer base grow 70% but is still lagging behind cloud competitor Dropbox, which has close to 300 million users.

Box increased its revenue guidance for the coming year to $286 to $290 million, up from the previous range of $281 to $285 million. The company recently completed its acquisition of Subspace to help extend content securely to other devices and also signed a storage deal with the Justice Department.