part 1 of assignment node + code sa treewalker