some changes in buffer size