working on flickring. trying double buffer