add eachrepeat (tested)