vdef calc was using end_orig to determine for which range it should do its