refactor
refactor buffer reusing