updated hv correction to use ion optics