changed fnorm function