fix document formatting