fix format for the index