update class definition