fixing duplicates numbers