buf example fixed