update class prim