change min pooling to max pooling