stack, grammar check