created the inner production and polarization function.