adding ngroups to 4.6.0