tree creation