repetition detect