There is no reason for this to be a for loop. You aren't sharing any code at all between the two passes through the loop.