buffer implementation working for READ