initial tree code for final phylogenies