modified run-beautify