updates to history file