changes to sampleSplitting.R