removed if statement from check for repeats