translate the document all at once so that it does not take so long.