update with a template