move to template