creating tree