add each_node which loops through each node in a tree and executes proc_node