remove side effects from utils normalize_range.