move stack into link_stack