modified TempGen to have types