added: sampling and dataset generation