max pooling implemented differently