added default value of 0. for kappa