set current tree once the tree is prepared