making search work for master