half done the search structure