created ComputeDifference routine that correctly clears Holeburning function accordingly