set root to index of people