moved tree to the last line