make the search work