reducing size of gfx state, cleanup