use buffer
use buffer
bug fix