refactored pdf document