changes to prim and netlogo