changed norm to square norm