[cem] converting aweights into p weights