delete duplicates after rename