modified safe prim