added support for multiple candidates from one group