add index structure for query