update class insertion