added buffer declaration