starting double buffering