adding buffering logic