update templates with result