initial version of search. not working.