use global Buffer