Changed collection to iterable