update ensemble codes