more fixes to unmatched parentheses