added EE two-group attractor function