added flag that controls whether still open class is under-sampled