removing a bunch of duplicates