adding unfinished analyze_league