by updating and storing reference thresholds