beautify tools code