change yank_buffer to global scope