update algorithm with the constant kappa