thresholding grid