adding functionality to search engine to refine search by best match