adding ExtendedDocument