organizing + impliminting the tree