tried initializing buffer a more usual way.