affing a bunch of for loops