add buffer compact