delete and beautify