update class register