by ester formation, lactone formation or the inverse reactions