fixed conditions for handling document status