prim fix up