Add code in teamUpdate