remove references to templates