implement yank_pop