fixed parentheses errors