restored bob's thresholding, but for now its commented out.