swap copy for template