now using average miles for team rank