beautify the index