adjusted the threshold