update the search function - search by parameter
update the search function