remove swap buffers