             {
                 // a catch all...
             }
-        })
+        }
         task.resume()
     }
     

                    DispatchQueue.main.async(execute: { () -> Void in
                        var indexPathArray : [IndexPath] = []
                        let previousPage = self.latestPage - 1
                        for var newRow = previousPage*20; newRow < self.latestPage*20; newRow++
                        {
                            let indexPath = IndexPath(row: newRow, section: 0)
                            indexPathArray.append(indexPath)

        let pageWeWant = self.latestPage+1
        let categoryString = categoryButton.title(for: UIControlState())
        let requestURLString = "https://api.500px.com/v1/photos?feature=\(categoryString!)&page=\(pageWeWant)&image_size=600&consumer_key=vW8Ns53y0F57vkbHeDfe3EsYFCatTJ3BrFlhgV3W"
        var request = URLRequest(url: URL(string:requestURLString)!)
        
        request.httpMethod = "GET"
        
        let task = urlSession.dataTask(with: request) { (data, response, error) in
            do {
                let json = try JSONSerialization.jsonObject(with: data!, options: []) as? [String:AnyObject]
                
