updated indexing in getgroup.m and getanovagroup.m