added divergence on sigma to compare with KL elements + fixed determinants, not tailored for performance