updating definitions and reverse definitions