product group logic