         return views.count //if no leaves => end of array is end of views
     }
     
-    func getNewNodeView() -> UIStackView {
+    private func getNewNodeView() -> UIStackView {
         let stackView = UIStackView()
         stackView.distribution = .FillEqually
         return stackView

        }
    }
    
    func getIDStringForIndex(index: Int) -> String {
        
        switch tree[index].type {
        case .Leaf:

    
    
    //determines whether all leaves are same layer
    private func allLeavesSameLayer() -> Bool {
        var set = false
        var layer = -1
        
