modify the buf size