preparing to search