convert tree 2 list