removed global var DefaultTemplate