                     z, K);
                 CHECK_CUDA_ERROR();
                 cudaUnbindTexture(sliceTexUInt);
-            };
-        };
-    };
+            }
+        }
+    }
 
     //--------------------------------------------------------------------------------------------------
     // copy to host

            volDimX, volDimY, volDimZ,
            dimTrnX, dimTrnY, dimTrnZ,
            z);
    };
    CHECK_CUDA_ERROR();
    // if (verbose) printf("transpose volume gpu elapsed time: %f ms \n", toc(tall));
    // pr_printfDeviceMemoryInfo();

                                                         nDepths, slicesAtTime, width, height, t, npixs, volStepXY,
                                                         volDimX, volDimY, volDimZ, volLUX, volLUY, volLUZ);
        CHECK_CUDA_ERROR();
    }

    cudaUnbindTexture(r4tex);
    cudaUnbindTexture(t4tex);
