added multigroup condition