     
     private func callLoadProductsCompletionForRequest(request: SKProductsRequest, responseProducts:Array<SKProduct>?, error: NSError?) {
         dispatch_async(dispatch_get_main_queue()) {
-            for i in 0..<count(self.loadProductsRequests) {
+            for i in 0..<self.loadProductsRequests.count {
                 let requestInfo = self.loadProductsRequests[i]
                 if requestInfo.request == request {
                     self.loadProductsRequests.removeAtIndex(i)

            }
        }
        
        if count(remainingIds) == 0 {
            completion(loadedProducts, nil)
        }
        

    
    private func callPurchaseProductCompletionForProduct(productId: String, error: NSError?) {
        dispatch_async(dispatch_get_main_queue()) {
            for i in 0..<self.purchaseProductRequests.count {
                let requestInfo = self.purchaseProductRequests[i]
                if requestInfo.productId == productId {
                    self.purchaseProductRequests.removeAtIndex(i)
