stash: convert pop to builtin