add getBuffer