remove double buffer call