             dispatchGroup.enter()
         }
         
+        
+        
         for var i in (0..<pages) {
             var modifiedBody = body
-            modifiedBody["from"] = Int(pageSize) * (i + 1)
+            modifiedBody["from"] = Int(pageSize) * (i)
             let jsonBody = dictToJSON(data: modifiedBody)
             
             let request = buildRequest(body: jsonBody)

                switch response.result {
                case .success:
                    guard let result = response.result.value as? [String : Any] else {
                        return
                    }
                    guard let hits = result["hits"] as? [String : Any] else {
                        return
                    }
                    guard let source = hits["hits"] as? Array<[String : Any]> else {
                        return
                    }
                    

        return body
    }
    
    static private func buildRequest(body: Data) -> URLRequest {
        var request = URLRequest(url: URL( string: urlString)!)
        request.httpMethod = HTTPMethod.post.rawValue
        request.setValue("application/json; charset=UTF-8", forHTTPHeaderField: "Content-Type")
