update diagnostic template