reformat index