dealing with node equivalence