del template from prob function