refine graphics structure