add missing closing parenthesis and excess whitespace