added index deletion method