more stuff for thresholds