for loops for mac