simplify normalize_mod