However, Brooks faced many difficulties between 2004 and 2006, as its parent company struggled unsuccessfully to integrate 1,500 Eckerd stores acquired from J.C. Penney with the existing Brooks network, resulting in a steady loss of market share and lagging same-store sales as CVS and Walgreens continued to expand and solidify their store base in the New England region. On June 4, 2007, Brooks Pharmacy officially announced the sale of the pharmacy to Rite-Aid Pharmacy. The Brooks trade name, long associated with New England drug retailing, was retired.