added buffer
using buffer