working model with groups