tested the tail integration/full calculation
now parallel