copying cleanup in spectral_cube