Cadbury chocolate and Oreo cookies maker Mondelez International has today reported better than expected revenue and profit. 

The company said that a mix of higher volumes and prices in certain markets helped to offset the impact of a strong dollar. 

Mondelez also reaffirmed its 2016 forecast today.

Volumes rose in some of its biggest markets such as North America and Asia Pacific, where it also raised prices. In Europe, its biggest market by revenue, volumes also rose but the company cut prices there. 

Total revenue, however, declined for the tenth quarter in a row, hit by the strong dollar and as consumers increasingly avoid high-calorie or sugary food in favor of healthier food. 

To counter the falling sales and to spruce up profit, the company has been cutting costs and selling its coffee businesses as well as making its snacks and candies healthier.  

Profit attributable to Mondelez rose 71% to $554m, or 35 cents per share, in the first quarter ended March 31.

Rival Hershey posted disappointing sales for the third quarter in a row earlier this week, as demand for its chocolates in North America continued to fall. 

Excluding items, Mondelez said it earned 48 cents per share, while its net revenue fell 16.8% to $6.46 billion.

Analysts had been expecting earnings of 39 cents per share and revenue of $6.42 billion, according to Thomson Reuters. 

The company also reaffirmed its 2016 forecast, but said it now expects strong dollar to reduce net revenue growth by about three percentage points from its previous estimate of about six.