change base type generator