added sup and inf threshold