changed AST definition for BranchNode