fix the buffer size to 8192