added functions to team model