adds chaining to iterables