fixes and calculation of kappa for lo/hi pairs