Walgreens to take over 185 Fred's pharmacies