formatting indices