fix typo, add missing default value for varNameWithoutType