attempting to write to file