first replicate func for initial dataset (hmp) included