use KS test instead of p-Value