add norm computation