beautify docuements