duplicates id handling