fixed H(z) bug
fixed H(z) bug