add threshold
fix threshold cutoffs