Update Prim's line code