changed search functionality