added listener to iteration