moving headers to the index