index and profile formatting fix