with max for pooling