can arbitrarily group samples