ensemble code in driver