modify frame buffer