doc gram check