update output buffer size