making sampling work better