fixed bugs, added unique ensemble