finding repetitions