fix number of repetitions