starting working on readind and writing buffer
new buffer routines and equality