remove extra closing parentheses