attempt to fix ternary operator precedence for <= syntax