working on graphicsBuffer