added init buffer