off by one error in writing normalize variants