update _tpl method