left in reference to i in loop after having turned it into a foreach with feachmodule