flip xy in for loops?