add affiliation function