update command's execute method