adds rename function to keep track of the files times