fixed typo generate.pp and made dummy function