enabled double buffering