                         }
                     }
                 case 8:
-                    if startParticleType != .recoil && row == 0 {
-                        var summ: Double = 0
-                        for info in fissionsAlphaFrontPerAct {
-                            if let energy = (info as? [String: Any])?[kEnergy] {
-                                summ += energy as! Double
-                            }
-                        }
+                    if row == 0 && startParticleType != .recoil {
+                        let summ = getSummEnergyFrom(fissionsAlphaFrontPerAct)
                         field = String(format: "%.7f", summ)
                     }
                 case 9:

                    } else {
                        field = alphs2DeltaTime(row)
                    }
                case 35:
                    field = alpha2EventNumber(row)
                case 36:
                    field = alpha2Energy(row)
                case 37:
                    field = alpha2Marker(row)
                case 38:
                    field = alphs2DeltaTime(row)
                default:
                    break

        return nil
    }
    
    fileprivate func getSummEnergyFrom(_ array: [Any]) -> Double {
        var summ: Double = 0
        for info in array {
            if let energy = (info as? [String: Any])?[kEnergy] {
                summ += energy as! Double
            }
        }
        return summ
    }
    
    fileprivate func getValueFrom(array: [Any], row: Int, key: String) -> Any? {
        return (array[row] as? [String: Any])?[key]
    }
