switching to new graphics functions