fixing and debuging deconvolution