h = (1 - z) * h_prev + z * h_