update template geometry