getting rid of repeats