fixing bool search