bit of cleaning up
stuck with getting adjacent vertices