adding getVertices()