             return index
         }
         if let sectionIndex = item as? Int {
-            return sections[sectionIndex].child(streamsOfCategories, index: index)
+            return sections[sectionIndex].child(streamListDic, index: index)
         }
         return "Nothing"
     }

            return sections.count
        }
        if let index = item as? Int {
            return sections[index].numOfChild(streamsOfCategories)
        }
        return 0
    }

                return category.label
            }
        }
        func child(streamListDic: [FeedlyKit.Category:[Stream]], index: Int) -> AnyObject {
            switch self {
            case .All:            return []
            case .Pocket:         return []
            case .Twitter:        return []
            case .FeedlyCategory(let category):
                if let streams = streamListDic[category] { return streams[index] }
                else                                           { return [] }
            }
        }
        func numOfChild(streamListDic: [FeedlyKit.Category:[Stream]]) -> Int {
            switch self {
            case .All:            return 0
            case .Pocket:         return 0
            case .Twitter:        return 0
            case .FeedlyCategory(let category):
                if let streams = streamListDic[category] { return streams.count }
                else                                           { return 0 }
            }
        }
    }

    var treeView:      RATreeView?
    var HUD:           MBProgressHUD!
    var sections:      [Section]                      = []
    var streamListDic: [FeedlyKit.Category: [Stream]] = [:]

    var apiClient:   FeedlyAPIClient  { get { return FeedlyAPIClient.sharedInstance }}
    var appDelegate: AppDelegate      { get { return UIApplication.sharedApplication().delegate as AppDelegate }}
