implemented mean square error of norms