beautify the codes