making the search work sort of