added index and vector