search function
search function fix