set buffer size 512