changed to old version of search_email