new membership function for group