after relabeling stop useless iterations