boolean values handling for filtering