succesful thresholding