update valid group condition