getting team stats optimized