trying to fix the use properly of vertexManager