writing to file now