made the resize of the vertex object better