limit repetition and restart