added vertexId to vertices