upd structure of template