ready for thresholding debuggin