now, when an input buffer is created, the output buffer is extended.