added support for parentheses