         var j: Int = 0
         //flatten accel in z to a 1D array
         for row in arr2D {
-            accel1D[j] = row[1]
+            accel1D[j] = row[3] //1 is x axis, 2 is y axis, 3 is z axis
             j += 1
         }
         return accel1D

            
            let guessSample = self.guessMatrix[2]
            do{
                let actionPredict = try self.nn.infer(guessSample)
                print(actionPredict)
                self.currentAppStatus.text = String(describing: actionPredict)
            } catch {print(error)}
        }


    
    func bootStrapDataM(arr2D: [[Float]], setsNum: Int, startPt: Int, stride: Int, windowSize: Int, rowNums: Int) -> [[Float]]{
        let accel1DOnly = get1DArray(arr2D: arr2D, rowNums: rowNums)
        let accel1Min = accel1DOnly.min()!
        let accel1Max = accel1DOnly.max()!
        var halfRange:Float = 0
        if accel1Max >= Float(0) && accel1Min >= Float(0){
            halfRange = (accel1Max - accel1Min)/2
        } else if accel1Max >= Float(0) && accel1Min <= Float(0){
            halfRange = (accel1Max + (-1 * accel1Min))/2
        } else {
            halfRange = ((accel1Min * -1) - (accel1Max * -1))/2 + (accel1Max * -1) //adding max again to make all data >= 0
        }
        
        var processedArr = accel1DOnly.map{$0 + halfRange}
        var returnArray: [[Float]] = Array(repeating: Array(repeating: 0.0, count: windowSize), count: setsNum)
        var pointer1 = startPt
