beautify the code