buffer demo