remove double buffering