shifted from using 2-norm to maximum norm,makes the calc easier; still could be a lot faster