some amendment of subst_param names in template