made some changes to search