portion of refactorings to the document