seperate boolean search

for Sam to improve it