implemented membership agregation