Switched g to graphics