update graphics.c to build