added routines for all trials kappa signal