reduced grammar and fixed header snippet