added full text document check