formatted the index