create function now accepts callback
passing a callback to leagueservice