renamed argument data as dataset and random as hyper_parm