re-added old normalization code