add buffer update