updates object class