     
     if let cell = tableView.cellForRow(at: indexPath) {
       if indexPath.row == 0 {
-        row0item.checked = !row0item.checked
+        items[0].checked = !items[0].checked
       } else if indexPath.row == 1 {
-        row1item.checked = !row1item.checked
+        items[1].checked = !items[1].checked
       } else if indexPath.row == 2 {
-        row2item.checked = !row2item.checked
+        items[2].checked = !items[2].checked
       } else if indexPath.row == 3 {
-        row3item.checked = !row3item.checked
+        items[3].checked = !items[3].checked
       } else if indexPath.row == 4 {
-        row4item.checked = !row4item.checked
+        items[4].checked = !items[4].checked
       }
      configureCheckmark(for: cell, at: indexPath)
       

    var isChecked = false
   
    if indexPath.row == 0 {
      isChecked = row0item.checked
    } else if indexPath.row == 1 {
      isChecked = row1item.checked
    } else if indexPath.row == 2 {
      isChecked = row2item.checked
    } else if indexPath.row == 3 {
      isChecked = row3item.checked
    } else if indexPath.row == 4 {
      isChecked = row4item.checked
    }
    if isChecked {
      cell.accessoryType = .checkmark

    
    if let label = cell.viewWithTag(1000) as! UILabel? {
      if indexPath.row == 0 {
        label.text = items[0].text
      } else if indexPath.row == 1 {
        label.text = items[1].text
      } else if indexPath.row == 2 {
        label.text = items[2].text
      } else if indexPath.row == 3 {
        label.text = items[3].text
      } else if indexPath.row == 4 {
        label.text = items[4].text
      }
    }
    
