remove use of prim