for loop in mod2