     // Merging remote snaphotcatalogs and existing logs
     private func mergeremotecatalogsandlogs() {
         var adjustedlogrecords = [Logrecordsschedules]()
-        for i in 0 ..< (self.snapshotcatalogs?.count ?? 0) {
+        for i in 0 ..< (self.catalogsanddates?.count ?? 0) {
             if let logrecordssnapshot = self.logrecordssnapshot {
                 if logrecordssnapshot.contains(where: { record in
                     let catalogelement = record.resultExecuted.split(separator: " ")[0]
                     let snapshotcatalogfromschedulelog = "./" + catalogelement.dropFirst().dropLast()
-                    if snapshotcatalogfromschedulelog == self.snapshotcatalogs?[i] {
+                    if snapshotcatalogfromschedulelog == self.catalogsanddates?[i].0 {
                         self.logrecordssnapshot?[i].period = "... not yet tagged ..."
                         self.logrecordssnapshot?[i].snapshotCatalog = snapshotcatalogfromschedulelog
                         if let record = self.logrecordssnapshot?[i] {

                    return false
                }) {} else {
                    var record = self.logrecordssnapshot?[0]
                    record?.snapshotCatalog = self.snapshotcatalogs?[i]
                    record?.period = "... not yet tagged ..."
                    record?.resultExecuted = "... no log ..."
                    record?.days = ""
                    record?.seconds = 0
                    // record?.dateExecuted = Date().long_localized_string_from_date()
                    record?.dateExecuted = self.datessnapshotcatalogstodelete?[i].long_localized_string_from_date() ?? Date().long_localized_string_from_date()
                    if let record = record {
                        adjustedlogrecords.append(record)
                    }

    var logrecordssnapshot: [Logrecordsschedules]?
    var config: Configuration?
    var outputprocess: OutputProcess?
    var snapshotcatalogstodelete: [String]?

    typealias Catalogsanddates = (String, Date)
    var catalogsanddates: [Catalogsanddates]?

    private func getremotecataloginfo() {
        self.outputprocess = OutputProcess()
