document index scope