formatting index