right check for document