improved closest-name-code-finder weighting