update checking for repetition condition