refactored maxNorm. Added accUpdate option