ajustable buffer

adjust the buffer size