get threshold