check repeats of nodes