handles unmatched parens