update histroy