updating with template