changed signature to accept leagueName