added pooling to small layer