with replacement of the other oxygen atom of the carboxyl group by halogen atoms