added tpl_for and if_else instantiation