improved setLastUpdate