adding tree to library