finish first iteration