need to clear dma buffer as well