changing mode to LASTMOD