thresholdは超えることがあるからthresholdなんだぞ
minやmaxじゃない