added rmrepeats