added example of search without callback function