Denis trick for documents