set up group-subject associations in models