fix operator priority and precedence