faster check on clusters in root refinement at end