improve findBestMatchingArea