fixes for denoising