Changed the vertices set structure