switching to integer division in ptsampler