minor adjustments to sparse sampling