write_all_out