formatting index content