update command function from order