finish definition of template 2