repeats input