new normalized sum of squares calculation