improved kappa, fix concept output bug