close to have the search term function complete