ref params for buffer