New algorithm to find consistent vertexes from Anthony