it is done in the BaseEnsemble classs.