added index and root