got prelim thesholding to work, needs calibration in the cutoff