         updateList()
     }
     
-    func updateObject(_ object: ListObject) {
+    func updateObject(_ object: ListObject) -> Int? {
         let index = self.objects.index { $0.listID == object.listID }
         if let item = index {
             

            self.objects[item] = object
            self.listUpdate?(update)
        }
    }
    // MARK: Insert
    func appendObjects(_ newObjects: [ListObject]) {

        self.listUpdate?(update)
    }
    
    func removeObject(_ object: ListObject) -> Int? {
        let index = self.objects.index { $0.listID == object.listID }
        if let index = index {
            self.removeObject(at: index)
        }
        return index
    }
    
    func removeObjects(_ objects: [ListObject]) {
