prepared what to send to search function