added func btree2list