correctly functioning iterations