added resampling of numSites in ppred