split iteration into record and set iteration stages