typo: buffer-->repl