better index formatting