add template template and compoundcomp