renamed this.inputBuffer to this.lastInputBuffer