TreeGenerator begin