need to fix the root index