Cahnging the search function