change the root to result index