fixed operator precedence issue