fixed searchresult function, deleted ajaz