update currentBuffer