index formatting