only accepting iterables to the when field