updating frameBuffer demo