change root to index