Macy’s says it returned to profitability in the first quarter as the department store operator saw sales pick up.

The company says efforts to tailor its merchandise to local markets lured more shoppers to buy.