Create index and set root