update the hard-coded rule into to dynamic group info