main index structure