add vectorized option to calc hetz