improve the time file for reading and writing