improve update command