minor
minor
improved pooling functions