looping through demographics