output with csv file and use of timestamp