adjust norm calculation