Modified getVertices