refactor lastUpdated