trivial api change for sampling all