fixed parentheses printing