graphics functions use pointers now