adjusting thres