bug fixes, rewrote Subgroups3.pg