reorganize group tables