dup detect sampling made more robust