thresholding applet can be run, but is not working correctly