update to prim