changed threshold status variable name to be more intuitive