updating duplicates