update class of field