remove extraneous parenthesis