note on sliding buffer