set incorrect errors to 0, add KS p-value test