added an item to index