update: copy into inputBuffer at end