containing carboxyl groups, or halides, or esters thereof