fixed parentheses problem