minor edits on Sampling.java