improved the vertex updating mechanism