getting rid of accidental duplicates