initialize buf