added multi group condition