commented out debug tracking of threshold through time