writes to file now