preserve item indexes in items_from