beautify parsing