adjusted randomVecOn...

changed heap pointer coord to a temporary pointer…