changed 2 norm for matrices to spectral norm