checking document status