nit: `function(player, team)` (note space)