Grocery sales at Grand Rapids, Michigan-based SpartanNash fell in the third quarter of 2017.

Net sales in the company’s retail division totaled $463.6 million for the quarter, down from $489 million during the same period in 2016. SpartanNash attributed the decline primarily to the closure and sales of stores and to a 2.5 decrease in comparable store sales.

The company closed three stores and sold another in the third quarter. It ended the quarter with 147 stores, down from 159 at the same time last year.

Operating losses in the quarter were $215.3 million, compared to operating income of $8 million in the third quarter of 2016. Adjusted operating earnings were $8.5 million compared to $12.4 million in the same period last year, a drop SpartanNash attributed in part to “the continued challenging retail environment.”