init tree