fixed up a bit the vertices select method