buffer stack seting