detecting parens correctly