finish generator lambda iterator