         requestOptions.deliveryMode = .FastFormat
         
         result.enumerateObjectsUsingBlock { asset, _, stop in
-            defer {
+            //defer {
                 if self.assets.count > fetchLimit {
                     stop.initialize(true)
                 }
-            }
+            //}
             
             if let asset = asset as? PHAsset {
+                self.assets.append(asset)
                 self.imageManager.requestImageDataForAsset(asset, options: requestOptions) { data, _, _, info in
                     if data != nil {
-                        self.assets.append(asset)
                         self.prefetchImagesForAsset(asset)
                     }
                 }
             }
         }
+        
+        
     }
     
     private func prefetchImagesForAsset(asset: PHAsset) {

    
    func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        print("ASSSEEETS === \(self.assets.count)")
        return self.assets.count
    }
    

        
        options.predicate = NSPredicate(format: "mediaType = %d", PHAssetMediaType.Image.rawValue)
        
        let fetchLimit = 100
        if #available(iOS 9, *) {
            options.fetchLimit = fetchLimit
        }
