index pretty formatting