removing thresholding