tmp
dynamic buffer update