rewrote team system