added update command

Minor nit: `}` on next line