get out the full tree from the loop