extract repetitions