write-commands: don't shadow iter variable.