writing vertexcm...