update last command