save ret_all structure.