changed to clone_stack