add learn_threshold