finished maketreefromfile