updated threshold value