Adds some parentheses where it is a need