update graphics.c