new hash function based on mtime