added pivot table for teams