switching to templates