done: buf fixed