teams logic in