[new] sample algorithms