make running multiple values of ngroups easy