refactor latest time run update