struggling to add a new object within an iterator