refactor delta_mtime