ENH: update mask thresholding