set buffer size