added ability to condition on subpopulation AC