pooling support rectangle shape, old pooling function is deleted