operator precedence was back to front