make sure items is not a generator