root to index