order of FOR loops