grammar action code update