initialize tree