remove duplicate IDs