by acylation of hydroxyl group or of mercapto group