updating history