Barnes & Noble is reporting a profit for its fiscal second-quarter as higher revenue from its Nook e-book and e-bookstore division offset a decline at retail stores.

The largest traditional book retailer says net income totaled $2.2 million for the three months ended Oct. 27. That translates to a loss of 4 cents per share, however, when accounting for the impact of the dividend on redeemable preferred shares. That matched analysts’ expectations.