adjusting repeats and resampling