working on automatic xi calculations for bootstrap regions.