define variables from AST branches