added time in file writer