prim update order