optimal number of repetitions