Macy’s has been embracing new services for shoppers looking for more convenience. Last fall, it began testing same-day delivery of products purchased at Macy’s.com and Bloomingdales.com in eight major U.S. markets. It also offers shoppers the opportunity to order online and pick up the merchandise at the stores. It’s also launched new mobile shopping aps heading into the holiday season.

“We must continue to invest in our business to focus on where the customer is headed — to prepare for what’s next,” said Terry J. Lundgren, Macy’s chairman and CEO in a statement.

The retailer said Thursday it will also close 14 department stores but open two new locations, resulting in annual savings of roughly $140 million. Macy’s says it plans to reinvest those savings into its business.

It says its overall workforce of about 175,000 will remain level as it lays off about 2,200 workers nationwide but picks up staffing in other areas. For example, Macy’s is expected to expand its San Francisco online division by hiring more than 150 workers.

JC Penney has opted to close stores.J.C. Penney Co. said will close about 40 stores this year and cut about 2,250 jobs.