change ArrayList to Iterable