add index for items