updated boolean expression