by replacing a carboxyl or aldehyde group by a hydroxy group