document check