bug with parentheses fixed