added support for comparision with standard document.