changes to prim and netlogo

prim changes