refactor: update history