persistence logic for group