change delta function