modify_affiliations compliant with the previously added variables