added remove_dupes