rewrote the entire graphics