update template and recipe