refactored league table