finished ks simulation