remove extraneous parentheses