changed normal equations