fix typo
fix iteration call
fix old variable name