add buffer back in