added parenthesis processing