search working
search function fix