updated threshold