should set last modified time as well.