allow Iterable as foreach parameter