remove id duplicates