Use iterator of list