fixing up search