finish ensemble/partitionbasedensemble