updating history command