fix up original document formatting