add leaves to the tree