update with template