fix prim