added check if threshold is inside volumes range