further improvement to near-match search
further improvement to near match search