adding buffer