better answer for firstRepeat