finished tree generation