 
         chatCell.liked = {
 
-            if var likes = object?["likes"] as? Set<String> {
+            if var likes = post.likes {
                 
                 likes.insert(PFUser.current()!.objectId!)
-                object?["likes"] = Array(likes)
-                object?.saveInBackground { (success, error) in
+                post["likes"] = Array(likes)
+                post.saveInBackground { (success, error) in
                     if (success) {
                         print("like succeed")
                     } else {

                }
            }
        }
        if let score = object {
            chatCell.label.text = score["message"] as? String
        }
        return chatCell
    }

}


        let chatCell = tableView.dequeueReusableCell(withIdentifier: "ChatCell", for: indexPath) as! ChatCell

        guard let object = object, let post = object as? Post else {
            print("Asked to make a table view cell for Empty Object")
            return nil
        }

        if let likes = post.likes {
            if likes.contains(PFUser.current()!.objectId!) {
                chatCell.likeButton.isEnabled = false
            } else {
