writing directly to the resultsfile in mis_data