add index to beautify.