fixing boolean search