set threshold for status