visualization on thresholding for making sure we are correcto