             let ref = FIRDatabase.database().reference()
             let key = ref.child("comments").childByAutoId().key
             let path1 = "comments/\(key)"
-            let path2 = "post-comments/\(postId)/\(key)"
-            let path3 = "user-comments/\(user.id)/\(key)"
+            let path2 = "posts/\(postId)/\(path1)"
+            let path3 = "users/\(user.id)/\(path1)"
             let data = [
                 "id": key,
                 "uid": user.id,

                "message": message,
                "timestamp": FIRServerValue.timestamp()
            ]
            let updates = [path1: data, path2: data, path3: data]
            ref.updateChildValues(updates)
            ref.child(path1).observeSingleEventOfType(.Value, withBlock: { (data) in
                var new = Comment()
                if let value = data.value {
                    new.id = key
                    new.message = message
                    new.user = user
                    new.timestamp = value["timestamp"] as! Double
                }
                callback([new], nil)
            })
        }

        if let error = error {
            callback(nil, error)
        } else {
            let root = FIRDatabase.database().reference()
            let comments = root.child("comments")
            let posts = root.child("posts")
            let users = root.child("users")
            let ref = posts.child(postId).child("comments")
            ref.queryLimitedToFirst(limit).observeSingleEventOfType(.Value, withBlock: { (data) in
                var list = [Comment]()
                for snap in data.children {
                    comments.child(snap.key).observeSingleEventOfType(.Value, withBlock: { (data2) in
                        let userId = data2.childSnapshotForPath("uid").value as! String
                        users.child(userId).observeSingleEventOfType(.Value, withBlock: { (data3) in
                            var user = User()
                            user.id = userId
                            user.firstName = data3.childSnapshotForPath("firstname").value as! String
                            user.lastName = data3.childSnapshotForPath("lastname").value as! String
                            
                            var comment = Comment()
                            comment.user = user
                            comment.id = data2.childSnapshotForPath("id").value as! String
                            comment.message = data2.childSnapshotForPath("message").value as! String
                            comment.timestamp = data2.childSnapshotForPath("timestamp").value as! Double
                            
                            list.append(comment)
                            
                            if UInt(list.count) == data.childrenCount {
                                callback(list, nil)
                            }
                        })
                    })
                }
            })
        }
    }
    
