add closing parentheses