improved run time by making sure HVol was a global

and only calculated once