fixed unbalanced parentheses