refactor
temp
refactoring
test matrix norm values
temp