new implementation of updating the models for bootstrapping the data to fix issue when using functions of explanatory variables eg. log(x)