updated groups script