fix_threshold