made team and teams serializable