adjusted the buffer size