took out write to file for run