new method in the document class