update histfile