use Iterable instead of Collection to remove deprecation warnings