solved iterations with break