rebin(/sample) is more efficient