update template method.
update test