reverting to old update gradients method in kernel product