completed thresholding example