setting the structure for index