changed how termination rule is learned