finish iteration