                 step = 4
                 
                 if let receivingString:String = String(
-                    data:data,
+                    data:dataUnheader,
                     encoding:String.Encoding.utf8)
                 {
                     print("data in xml:")

            
            // 0: length, 1: ack (should be 2), 2: eventpipeid
            
            print("header:\(header) pipeid:\(arr2)")
            
            defer
            {

        {
            step = 5
            
            let arrCode = dataUnheader.withUnsafeBytes {
                
                Array(UnsafeBufferPointer<UInt16>(start: $0, count: 1))
            }
            
            let sub2:Data = dataUnheader.subdata(in: 2..<6)
            
            let arrParameter = sub2.withUnsafeBytes {
                
