setup type and template