update history file