fix index formatting