set up average pooling