Last week, Gap spun off the value-focused brand Old Navy to create two separate companies.

The Gap brand has struggled in recent years – same-store sales were down 5% in the fourth quarter of 2018 and overall for the year.

Gap is dressing up its image.

After announcing that the company would be spinning off its value brand Old Navy, a bankruptcy document filed over the weekend revealed that Gap planned to purchase the high-end kid’s clothing company Janie and Jack.

According to the document, filed in a US bankruptcy court in Richmond, Virginia, Gap plans to buy the brand’s intellectual property, e-commerce site, customer data, and other assets for $35 million. The company is owned by Gymboree, a children’s clothing company that filed for Chapter 11 bankruptcy protection in January.

This new deal fits in neatly with Gap’s plans to change its brand image and distance itself from being seen as a “cheap” store.

The Gap brand has struggled in recent years – same-store sales were down 5% in the fourth quarter of 2018 and overall for the year – and it has increasingly leaned on heavy discounting to clear inventory. This not only erodes profit margins but also damages the brand image.

Gap’s CEO, Art Peck, who will become CEO of the yet-to-be-named company that consists of the Gap brand, Athleta, Banana Republic, Intermix, and Hill City, believes that splitting the company in two will better position it to serve what the company sees as increasingly different customer bases.

“Old Navy’s value-creation levers, business model, and customers have increasingly diverged from our specialty brands,” he said Thursday during a call with investors. “That divergence to me is now clear. And we think the best way for each company to grow and meet the evolving needs of our customers is to allow them to pursue tailored strategies separately.”

The company plans to close 230 Gap stores over the next two years and up to half of the specialty fleet beyond that. Specialty stores are defined as any Gap store excluding its outlet and factory locations.

“We have our work cut out for us this we acknowledge,” Peck said. “But we know what we need to do to win. And we are committed to restructuring the fleet and revitalizing Gap brand to unlock shareholder value and drive profitable growth.”