interface for deleting duplicates