switch to template