adjusting search functionality