corrected boolean expression