fix after change to precendence of "in" in "for" loop