regenerate base type