conversion to TreeID2