pollutantmean function