adjusting buffer size.