redoing tree with stacks