finished calculation with simple delta function!