beginning to reconstruct the tree