w(z) should be 1/k_z)