parentheses expressions, grammar fixes, CHR function.