changed functions to teams