add structure to index