reduce_membership use global vars