Caremark to pay $38.5M settlement