change variable to find templates for delete