ks_hat