Updated revision,enhanced pooling class