fixed up new_search method