updated analyze_training