finish the item index