use homemade buffer