completed poluttant mean function