                 deleteAllObjects()
             }else {
                 deleteObjects()
-                do {
-                    let result:Results<DynamicObject> =  realm.dynamicObjects(schema.className)
-                    objects = Array(result)
-                    let indexSet = IndexSet(integer: 0)
-                    tableView.reloadSections(indexSet, with: .top)
-                }catch {
-                    print("error deleting objects")
-                }
+                let result:Results<DynamicObject> =  realm.dynamicObjects(schema.className)
+                objects = Array(result)
+                let indexSet = IndexSet(integer: 0)
+                tableView.reloadSections(indexSet, with: .top)
             }
             
             self.navigationItem.leftBarButtonItem = nil

        
        guard let cell = tableView?.cellForRow(at:indexPath) else { return nil }
        

        let detailVC =  RBSRealmPropertyBrowser(object:self.objects[indexPath.row], realm: realm)
        detailVC.preferredContentSize = CGSize(width: 0.0, height: 300.0)
        previewingContext.sourceRect = cell.frame

            self.navigationItem.leftBarButtonItem = bbi
        }
    }
    @objc func actionSelectAll(_ id: AnyObject) {
        selectAll = !selectAll
        if selectAll {
            self.navigationItem.leftBarButtonItem?.title = "Unselect all"
