fiddling with search code--does not work