added check parens general case script