rm removeRepeated fn