rewrote the graphical representations