moved de to templates