add team serialize method