fix parenthesising