set threshold to 1-999