added function ...mark_repeats